Skip to content

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Jan 6, 2026

Fix CI errors.

Summary by CodeRabbit

  • Chores
    • Updated CI/CD test execution infrastructure to improve build parallelization and test distribution efficiency.

✏️ Tip: You can customize this high-level summary in your review settings.

Signed-off-by: Jinzhe Zeng <[email protected]>
Copilot AI review requested due to automatic review settings January 6, 2026 17:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases the parallelization of Python unit tests in CI by doubling the number of test groups from 6 to 12. This change should help reduce overall CI execution time by distributing the test workload across more parallel jobs.

Key Changes

  • Matrix strategy expanded from 6 to 12 groups for parallel test execution
  • Pytest splits configuration updated to match the new group count

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dosubot dosubot bot added the build label Jan 6, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 6, 2026

📝 Walkthrough

Walkthrough

The GitHub Actions Python test workflow is expanded to increase test parallelism. The job matrix group increases from 6 to 12 entries, and pytest splits double from 6 to 12 accordingly. Duration caching keys are affected by the new splits count, though the cache key structure remains tied to python and group variables.

Changes

Cohort / File(s) Summary
GitHub Actions Test Workflow
\.github/workflows/test_python\.yml
Expanded job matrix from [1,2,3,4,5,6] to [1,2,3,4,5,6,7,8,9,10,11,12]; doubled pytest split count from 6 to 12; adjusted duration caching keys to reflect new splits distribution

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • wanghan-iapcm

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: expanding the CI test matrix from 6 groups to 12 groups for running Python unit tests, which aligns with the workflow modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Gitleaks (8.30.0)
.github/workflows/test_python.yml

panic: allocator_unix: failed to reserve memory: cannot allocate memory

goroutine 1 [running]:
github.com/wasilibs/wazero-helpers/allocator.alloc(0x1911020?, 0x100000000)
/Users/zrice/Go/pkg/mod/github.com/wasilibs/[email protected]/allocator/nonmoving_unix.go:33 +0x10e
github.com/tetratelabs/wazero/experimental.MemoryAllocatorFunc.Allocate(0xa84539?, 0xd4ac60?, 0x47d43a?)
/Users/zrice/Go/pkg/mod/github.com/tetratelabs/[email protected]/experimental/memory.go:28 +0x1c
github.com/tetratelabs/wazero/internal/wasm.NewMemoryInstance(0xc00011bb40, {0x7fd03f65fe00?, 0xe87630?}, {0xf90c48, 0xc00013b600})
/Users/zrice/Go/pkg/mod/github.com/tetratelabs/[email protected]/internal/wasm/memory.go:78 +0xab
github.com/tetratelabs/wazero/internal/wasm.(*ModuleInstance).buildMemory(0xc00017ef00, 0xc0002011e0, {0x7fd03f65fe00?, 0xe87630?})
/Users/zrice/Go/pkg/mod/github.com/tetratelabs/[email protected]/internal/wasm/module.go:653 +0x4c
github.com/tetratelabs/wazero/internal/wa

... [truncated 302 characters] ...

1e0, {0xf8a300, 0xc000242a80}, 0x0?, {0xe18d1d?, 0x0?}, 0x0?, {0x1932260, 0x0, 0x0})
/Users/zrice/Go/pkg/mod/github.com/tetratelabs/[email protected]/internal/wasm/store.go:327 +0x5a
github.com/tetratelabs/wazero.(*runtime).InstantiateModule(0xc0002438c0, {0xf8a300, 0xc000242a80}, {0xf8e7e0, 0xc000274700}, {0xf92da0, 0xc00028c1e0})
/Users/zrice/Go/pkg/mod/github.com/tetratelabs/[email protected]/runtime.go:337 +0x1e5
github.com/tetratelabs/wazero.(*runtime).InstantiateWithConfig(0xc0002438c0, {0xf8a300, 0xc000242a80}, {0x1528cd0?, 0xd45020?, 0xe87630?}, {0xf92da0, 0xc00028c1e0})
/Users/zrice/Go/pkg/mod/github.com/tetratelabs/[email protected]/runtime.go:302 +0x74
github.com/wasilibs/go-re2/internal.init.0()
/Users/zrice/Go/pkg/mod/github.com/wasilibs/[email protected]/internal/re2_wazero.go:184 +0x39c


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/test_python.yml (1)

60-60: LGTM! Pytest splits correctly updated.

The --splits 12 parameter correctly matches the new matrix group count. The --splitting-algorithm least_duration combined with duration caching should help distribute tests evenly across the 12 groups.

Consider monitoring the actual test distribution and execution time across groups after this change to ensure the parallelism improvement is optimal.

📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fe1662d and 8ca9f3b.

📒 Files selected for processing (1)
  • .github/workflows/test_python.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (40)
  • GitHub Check: Analyze (python)
  • GitHub Check: Test Python (12, 3.13)
  • GitHub Check: Test Python (11, 3.13)
  • GitHub Check: Analyze (c-cpp)
  • GitHub Check: Test Python (9, 3.10)
  • GitHub Check: Test Python (9, 3.13)
  • GitHub Check: Test Python (2, 3.13)
  • GitHub Check: Test Python (6, 3.13)
  • GitHub Check: Test Python (7, 3.13)
  • GitHub Check: Test Python (10, 3.10)
  • GitHub Check: Test Python (4, 3.13)
  • GitHub Check: Test Python (8, 3.13)
  • GitHub Check: Test Python (1, 3.10)
  • GitHub Check: Test Python (10, 3.13)
  • GitHub Check: Test Python (6, 3.10)
  • GitHub Check: Test Python (3, 3.13)
  • GitHub Check: Test Python (8, 3.10)
  • GitHub Check: Test Python (7, 3.10)
  • GitHub Check: Test Python (5, 3.10)
  • GitHub Check: Test Python (12, 3.10)
  • GitHub Check: Test Python (4, 3.10)
  • GitHub Check: Test Python (5, 3.13)
  • GitHub Check: Test Python (11, 3.10)
  • GitHub Check: Test Python (3, 3.10)
  • GitHub Check: Test Python (1, 3.13)
  • GitHub Check: Test Python (2, 3.10)
  • GitHub Check: Build wheels for cp310-manylinux_aarch64
  • GitHub Check: Build C library (2.18, libdeepmd_c.tar.gz)
  • GitHub Check: Build wheels for cp311-macosx_x86_64
  • GitHub Check: Build wheels for cp311-win_amd64
  • GitHub Check: Build wheels for cp311-macosx_arm64
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Test C++ (false, false, false, true)
  • GitHub Check: Test C++ (false, true, true, false)
  • GitHub Check: Test C++ (true, false, false, true)
  • GitHub Check: Test C++ (true, true, true, false)
  • GitHub Check: Build C++ (clang, clang)
  • GitHub Check: Build C++ (cpu, cpu)
  • GitHub Check: Build C++ (rocm, rocm)
  • GitHub Check: Build C++ (cuda120, cuda)
🔇 Additional comments (1)
.github/workflows/test_python.yml (1)

21-21: LGTM! Doubling test parallelism.

The matrix expansion from 6 to 12 groups effectively doubles the test parallelism, which should significantly reduce overall CI runtime. The change is consistent with the corresponding pytest splits parameter update.

@codecov
Copy link

codecov bot commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.14%. Comparing base (fe1662d) to head (8ca9f3b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5131      +/-   ##
==========================================
- Coverage   82.15%   82.14%   -0.01%     
==========================================
  Files         709      709              
  Lines       72468    72470       +2     
  Branches     3616     3615       -1     
==========================================
- Hits        59535    59531       -4     
- Misses      11769    11773       +4     
- Partials     1164     1166       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@njzjz njzjz requested a review from iProzd January 7, 2026 04:17
@iProzd iProzd added this pull request to the merge queue Jan 7, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 7, 2026
@njzjz njzjz added this pull request to the merge queue Jan 7, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 7, 2026
@njzjz njzjz added this pull request to the merge queue Jan 7, 2026
Merged via the queue into deepmodeling:master with commit e22852e Jan 7, 2026
79 checks passed
@njzjz njzjz deleted the 12-groups branch January 7, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants